import instance from "@/utils/request";

let goodsAdjust={
    //分页查询
    searchPage(parems){
        return instance.get(`goods-adjust`,{params:parems})

    },
    //分页查询
    searchPage1(parems){
        return instance.get(`goods-adjust/findByApproveStatus`,{params:parems})

    },

    //查询根据id查询审核记录
    findByAdjustId(id){
        return instance.get(`goods-adjust-info/${id}`)
    },

    //添加
    addAdjustInfo(entity){
        return instance.post(`goods-adjust-info`,entity)
    },

    //添加
    addEntity(entity){
        return instance.post(`goods-adjust`,entity)
    },
    //查询根据id查询
    findById(id){
        return instance.get(`goods-adjust/${id}`)
    },
    //修改
    updateEntity(entity){
        return instance.put(`goods-adjust/update`,entity)
    },
    /**
     * 删除
     */
    deleteById(id){
        return instance.delete(`goods-adjust/${id}`)
    },
    /**
     * 批量删除
     */
    batchDelete(ids){
        return instance.delete(`goods-adjust/${ids}`)
    },
}

export default goodsAdjust;